﻿using Abp.Application.Services.Dto;
using Abp.AutoMapper;
using FutureApp.xl;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;

namespace FutureApp.Orders.Dto
{
    /// <summary>
    /// 实体Dto
    /// </summary>
    [AutoMapFrom(typeof(OrderHead))]
    public class OrderHeadDto : EntityDto<Guid>
    {   /// <summary>
        /// 商品名称
        /// </summary>
        public string GoodName { get; set; }
        /// <summary>
        /// 商品价格
        /// </summary>
        
        public  double GoodPrice { get; set; }
        /// <summary>
        /// 选择分期
        /// </summary>
        
        public  int? Nums { get; set; }
        /// <summary>
        /// 姓名
        /// </summary>
        
        public  string SellName { get; set; }
        /// <summary>
        /// 身份证
        /// </summary>
        
        public  string SellIdentity { get; set; }
        /// <summary>
        /// 居住地址
        /// </summary>
        
        public  string HomeAddress { get; set; }
        /// <summary>
        /// 工作单位
        /// </summary>
        
        public  string Company { get; set; }
        /// <summary>
        /// 工作单位地址
        /// </summary>
        
        public  string CompanyAddress { get; set; }
        /// <summary>
        /// 手机号
        /// </summary>
        
        public  string SellTelephone { get; set; }
        /// <summary>
        /// 银行卡号
        /// </summary>
        public  string SellCard { get; set; }
        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime CreationTime { get; set; }
        /// <summary>
        ///订单类型：1审核中，2已通过审核，3未通过审核，4订单作废
        /// </summary>      
        public  int? Type { get; set; }

        /// <summary>
        ///外键
        /// </summary>
        public ICollection<OrderMainDto> OrderMain { get; set; }

    }


    /// <summary>
    ///  行Dto
    /// </summary>
    [AutoMapFrom(typeof(OrderMain))]
    public class OrderMainDto : EntityDto<Guid>
    {
        /// <summary>
        /// 期数
        /// </summary>
        public string Num { get; set; }
        /// <summary>
        /// 金额
        /// </summary>
        
        public  double MainPrice { get; set; }
        /// <summary>
        /// 还款日
        /// </summary>
        
        public  DateTime MainDate { get; set; }
        /// <summary>
        /// 状态：1未还清，2已还清，3逾期
        /// </summary>
        
        public int? MainType { get; set; }
      
    }

    /// <summary>
    /// 分期Dto
    /// </summary>
    [AutoMapFrom(typeof(Stage))]
    public class StageDto : EntityDto<Guid>
    {
        /// <summary>
        /// 属性的最大长度
        /// </summary>
        public const int MaxNameLength = 50;

        /// <summary>
        /// 期数
        /// </summary>
        public  int? Num { get; set; }
        /// <summary>
        /// 开始金额
        /// </summary>
        
        public  double BeginPrice { get; set; }
        /// <summary>
        /// 结束金额
        /// </summary>
        
        public  double EndPrice { get; set; }
        /// <summary>
        /// 利息
        /// </summary>
        
        public  double AddPrice { get; set; }

    }


}
